// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   y1.java

package com.zelix;

import java.awt.*;
import java.awt.event.*;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.util.EventObject;
import javax.swing.*;

// Referenced classes of package com.zelix:
//            w1, zo, o4, zz, 
//            a, m4, qz, rz, 
//            tz, j0, tb

class y1 extends w1
        implements ActionListener, KeyListener, PropertyChangeListener {

    String c;
    m4 d;
    JButton e;
    JButton f;
    static String g[];
    private static String z[];

    private y1(JFrame jframe, String s, String s1) {
        super(jframe, s, true);
        c = s1;
        g();
        a();
    }

    public void actionPerformed(ActionEvent actionevent) {
        Object obj = actionevent.getSource();
        if (obj instanceof JButton) {
            JButton jbutton = (JButton) obj;
            if (jbutton == e)
                f();
            if (jbutton == f)
                e();
        }
    }

    void e() {
        b();
    }

    public void b() {
        super.b();
    }

    public static String a(JFrame jframe, String s, String s1) {
        y1 y1_1 = new y1(jframe, s, s1);
        String s2 = y1_1.c;
        return s2;
    }

    public void keyPressed(KeyEvent keyevent) {
        label0:
        {
            if (keyevent.getKeyCode() != 10)
                break label0;
            if (keyevent.getSource() == e || keyevent.getSource() == d) {
                f();
                if (!tb.b)
                    break label0;
            }
            if (keyevent.getSource() == f)
                e();
        }
    }

    public void keyReleased(KeyEvent keyevent) {
    }

    public void keyTyped(KeyEvent keyevent) {
    }

    void f() {
        File afile[];
        StringBuffer stringbuffer;
        int i;
        boolean flag;
        flag = tb.b;
        afile = d.f();
        stringbuffer = new StringBuffer();
        i = 0;
        for (; i < afile.length; i++) {
            stringbuffer.append(afile[i].getAbsolutePath());
            if (i < afile.length - 1)
                stringbuffer.append(File.pathSeparator);
        }

        c = stringbuffer.toString();
        b();
    }

    public void propertyChange(PropertyChangeEvent propertychangeevent) {
        boolean flag;
        File afile[];
        int i;
        if (propertychangeevent.getPropertyName().equals(z[0])) {
            flag = false;
            afile = (File[]) propertychangeevent.getNewValue();
            for (i = 0; i < afile.length; i++) {
                String s = afile[i].getAbsolutePath();
                if (!zo.b(s))
                    continue;
                flag = true;
            }
            if (flag) {
                e.setEnabled(true);
            } else
                e.setEnabled(false);
        }
    }

    protected void g() {
        Container container = getContentPane();
        j0 j0_1 = new j0(container);
        container.setLayout(j0_1);
        a a1 = new a(z[6], 250, zo.b());
        o4 o4_1 = new o4(false, true, 5, 5);
        o4_1.setLayout(new BorderLayout());
        o4_1.add(a1, z[7]);
        container.add(o4_1, z[5]);
        File file = null;
        if (c != null) {
            if (c.indexOf(File.pathSeparator) > -1)
                c = c.substring(0, c.indexOf(File.pathSeparatorChar));
            File file1 = new File(c);
            if (file1.exists())
                if (file1.isDirectory())
                    file = file1;
                else
                    file = file1.getParentFile();
        }
        qz aqz[] = {
                new tz(), new rz()
        };
        d = new m4(file, true, 3, aqz, 0, false);
        container.add(d, z[1]);
        d.addKeyListener(this);
        d.addPropertyChangeListener(this);
        e = new JButton(z[4]);
        container.add(e, z[3]);
        f = new JButton(z[2]);
        container.add(f, z[8]);
        e.addActionListener(this);
        f.addActionListener(this);
        e.addKeyListener(this);
        f.addKeyListener(this);
        j0_1.a(g);
        e.setEnabled(false);
        zz.a(this);
        setResizable(true);
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x56;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x39;
                    break;
                case 1:
                    key = 78;
                    break;
                case 2:
                    key = 12;
                    break;
                case 3:
                    key = 39;
                    break;
                default:
                    key = 86;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[] = new String[9];
        as[0] = z(z("J+`B5M'cI\025Q/b@3]"));
        as[1] = z(z("_'`B\005\\\"iD\"V<"));
        as[2] = z(z("z/bD3U"));
        as[3] = z(z("V%NS8"));
        as[4] = z(z("v\005"));
        as[5] = z(z("\\:oO3]\036mI3U"));
        as[6] = z(z("c+`N.\031\005`F%J\003mT\"\\<,D9L\"h\0078V:,A?W*,S>\\noK7J=,M7O/\"K7W)\"h4S+oSx\031\036`B7J+,T3U+oSvM&i\0077K-dN \\njN:\\nxO7MnoH8M/eI%\031:dBvs/zFv[!cS%M<mWvZ\"mT%\\=,S>X:,^9Ln{N%QnVB:P6,l:X=\177j7J:iUvM!,R%\\`"));
        as[7] = z(z("z+bS3K"));
        as[8] = z(z("Z/bD3U\fxI"));
        z = as;
        String as1[] = new String[16];
        as1[0] = z(z("U/uH#M`aN8n'hS>\004}<\027"));
        as1[1] = z(z("U/uH#M`aN8q+e@>Ms?\027f"));
        as1[2] = z(z("\\:oO3]\036mI3U`xH&\004{"));
        as1[3] = z(z("\\:oO3]\036mI3U``B0Ms=\027"));
        as1[4] = z(z("\\:oO3]\036mI3U`~N1Q:1D9W:mN8\\<\"U?^&x\ng\t"));
        as1[5] = z(z("_'`B\005\\\"iD\"V<\"S9IsiS5Q+hw7W+`\t4V:xH;"));
        as1[6] = z(z("_'`B\005\\\"iD\"V<\"K3_:1\026f"));
        as1[7] = z(z("_'`B\005\\\"iD\"V<\"U?^&x\0325V xF?W+~\t$P)dS{[:bp?]:d\ne\t"));
        as1[8] = z(z("_'`B\005\\\"iD\"V<\"E9M:cJkZ!bS7P iUx[!xS9Tc9"));
        as1[9] = z(z("[:bp?]:d\032;X6$H={:b\t2\\(mR:M\031eC\"Qb,D7W-iK\024M \"C3_/yK\"n'hS>\020"));
        as1[10] = z(z("V%NS8\027-iI\"\\<U\0325V xF?W+~\t>\\'kO\"\024+xD>\\*\\F8\\\"\"E9M:cJ|\013{#\026f\teiS5Q+hw7W+`\t4V:xH;"));
        as1[11] = z(z("V%NS8\027\"iA\"\004(eK3j+`B5M!~\t$P)dS}\b{"));
        as1[12] = z(z("V%NS8\0279eC\"QsnS8n'hS>"));
        as1[13] = z(z("Z/bD3U\fxIxZ+bS3K\0271D9W:mN8\\<\"O3P)dS{\\:oO3]\036mI3U`nH\"M!a\ra\fa=\027f\022+xD>\\*\\F8\\\"\"E9M:cJ"));
        as1[14] = z(z("Z/bD3U\fxIxU+jSk_'`B\005\\\"iD\"V<\"U?^&x\fg\f"));
        as1[15] = z(z("Z/bD3U\fxIxN'hS>\004,xI\001P*xO"));
        g = as1;
    }
}
